libs = user32.lib gdi32.lib kernel32.lib comctl32.lib

!message nmake usage:
!message 'nmake' or 'nmake debug=' : build debug version.
!message 'nmake release='          : build release version.
!message 'nmake clean'             : clean workshop
!message

clf = /nologo /c /MDd
lkf = /nologo
lbf = /nologo
mtf = -nologo

!ifdef debug
clf = /nologo /c /MDd
!elseifdef release
clf = /nologo /c /MD /DNDEBUG
!endif

multicall.exe : multicall.obj
	link $(lkf) $**
	@if exist $*.exe.manifest (mt $(mtf) -manifest $*.exe.manifest -outputresource:$*.exe & del $*.exe.manifest)

.c.obj:
	cl $(clf) $<

clean:
	if exist *.obj (del *.obj)
	if exist *.exe (del *.exe)
	if exist *.dll (del *.dll)
	if exist *.manifest (del *.manifest)
	if exist *.res (del *.res)
	if exist *.exp (del *.exp)
	if exist *.lib (del *.lib)
